package com.baitiaojun.moments.api.impl;

import com.baitiaojun.moments.api.VideoMomentsApi;
import com.baitiaojun.moments.service.VideoMomentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @类名 VideoMomentsApiImpl
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/2/23 16:20
 * @版本 1.0
 */
@RestController
public class VideoMomentsApiImpl implements VideoMomentsApi {

    @Autowired
    private VideoMomentsService videoMomentsService;

    @Override
    public void publishVideoMoments(@RequestParam Long videoId, @RequestParam Long userId) throws Exception {
        videoMomentsService.publishVideoMoments(videoId, userId);
    }
}
